private static async Task <OfficeElements> CreateTaskAsync() { _dateInterface = Substitute.For <IGetDate>(); _dateInterface.GetCurrentDate().Returns(DateTime.Parse("2020-01-01")); MainSql.CreateConnection(); await MainSql.CkeckConnectionAsync(); await MainSql.CreateAsync(new TestUserHelpers(), new TestInternetAccess(), "1111"); return(await OfficeElements.CreateAsync(_dateInterface).ConfigureAwait(false)); }
public async Task CreateElementsAsync() => _officeElements = await OfficeElements.CreateAsync(new GetDate());