mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-07-16 17:47:22 +00:00
Format ./web/backend/API/API.Specs
This commit is contained in:
@@ -20,7 +20,8 @@ public class TestApiFactory : WebApplicationFactory<Program>
|
||||
d.ServiceType == typeof(IEmailProvider)
|
||||
);
|
||||
|
||||
if (emailProviderDescriptor != null) services.Remove(emailProviderDescriptor);
|
||||
if (emailProviderDescriptor != null)
|
||||
services.Remove(emailProviderDescriptor);
|
||||
|
||||
services.AddScoped<IEmailProvider, MockEmailProvider>();
|
||||
|
||||
@@ -29,9 +30,10 @@ public class TestApiFactory : WebApplicationFactory<Program>
|
||||
d.ServiceType == typeof(IEmailDispatcher)
|
||||
);
|
||||
|
||||
if (emailDispatcherDescriptor != null) services.Remove(emailDispatcherDescriptor);
|
||||
if (emailDispatcherDescriptor != null)
|
||||
services.Remove(emailDispatcherDescriptor);
|
||||
|
||||
services.AddScoped<IEmailDispatcher, MockEmailDispatcher>();
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user