From 78c8f9a5186f7fec82e08826b29c6e6d7a0ec9ac Mon Sep 17 00:00:00 2001 From: alexmg Date: Sat, 27 Oct 2018 22:59:28 +1000 Subject: [PATCH] Fixed code style issues. --- .../Assertions.cs | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/test/Autofac.Integration.ServiceFabric.Test/Assertions.cs b/test/Autofac.Integration.ServiceFabric.Test/Assertions.cs index 08531c7..31f8e10 100644 --- a/test/Autofac.Integration.ServiceFabric.Test/Assertions.cs +++ b/test/Autofac.Integration.ServiceFabric.Test/Assertions.cs @@ -12,27 +12,26 @@ internal static void AssertRegistered(this IComponentContext context) internal static void AssertSharing(this IComponentContext context, InstanceSharing sharing) { - var cr = context.RegistrationFor(); - Assert.Equal(sharing, cr.Sharing); + var registration = context.RegistrationFor(); + Assert.Equal(sharing, registration.Sharing); } internal static void AssertLifetime(this IComponentContext context) { - var cr = context.RegistrationFor(); - Assert.IsType(cr.Lifetime); + var registration = context.RegistrationFor(); + Assert.IsType(registration.Lifetime); } internal static void AssertOwnership(this IComponentContext context, InstanceOwnership ownership) { - var cr = context.RegistrationFor(); - Assert.Equal(ownership, cr.Ownership); + var registration = context.RegistrationFor(); + Assert.Equal(ownership, registration.Ownership); } internal static IComponentRegistration RegistrationFor(this IComponentContext context) { - IComponentRegistration r; - Assert.True(context.ComponentRegistry.TryGetRegistration(new TypedService(typeof(TComponent)), out r)); - return r; + Assert.True(context.ComponentRegistry.TryGetRegistration(new TypedService(typeof(TComponent)), out var registration)); + return registration; } } }